<!DOCTYPE html>
<html lang="zh-CN">
        <head>
                <meta charset="UTF-8">
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
                <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
                <title>www.it123.org</title>



        <include file="./Tpl/N/Common/member_header.html" />


</head>
<body>
        <!--导航-->
<include file="./Tpl/N/Common/member_menu.html" />
<!--导航-->






<div class="container">
        <div class="row">
                <div class="col-md-2">
                        <include file="./Tpl/N/Common/member_userinfo_menu.html" />
                </div>
                <div class="col-md-10">

                        <ul class="nav nav-tabs">

                                <li  class="active">
                                        <a href="uesr_search.html">用户资料</a>
                                </li>

                        </ul>
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                        <form action="#" class="uesr_search">
                                <div class="alert alert-info" role="alert">
                                        <strong>提示：</strong>
                                        登录邮箱不能修改！昵称不能重复！
                                </div>


               
                            
                            
                            
                            
                            


                                <if condition="(session('member.member_up_face') eq 1)">

                                        <div class="row">



                                                <p class="text-center">	<img src="__ROOT__/Data/Uploads/Face/face_{:session('member.member_id')}_100.jpg"  alt="..." class="img-circle"></p>



                                        </div>


                                </if>






                                <p>
                                <div class="input-group input-group-lg">
                                        <span class="input-group-addon" id="sizing-addon1"><span class="glyphicon glyphicon-user"></span> 昵 称:</span>
                                        <input type="text"  name="member_nickname_input"  value="{:session('member.member_nickname')}" class="form-control" placeholder="设置昵称" 
                                               aria-describedby="sizing-addon1"> <span class="input-group-addon btn btn-default" id="sizing-addon1" name="member_nickname_btn" type="button" >修改</span>


                                </div>
                                </p>


                                <p>
                                <div class="input-group input-group-lg">
                                        <span class="input-group-addon" id="sizing-addon1"><span class="glyphicon glyphicon-envelope"></span> 邮 箱:</span>
                                        <input type="email"  name="member_nickname_input"   value="{:session('member.member_email')}" class="form-control" placeholder="Email" 
                                               aria-describedby="sizing-addon1" disabled> <span class="input-group-addon btn btn-default" id="sizing-addon1"  type="button"  disabled>修改</span>


                                </div>
                                </p>             














                        </form>
                </div>
        </div>
</div>























<include file="./Tpl/N/Common/member_footer.html" />















<script>




        $("span[name='member_nickname_btn']").click(function() {




                var new_nickname = $("input[name='member_nickname_input']").val();


                $.post("__APP__/Member/ajaxUpdateNickName/",
                        {nickname: new_nickname},
                function(data) {


                        if (data.status == true) {
                                alert('昵称修改成功！');
                                location.href = '__APP__/Member/';
                                //location.href实现客户端页面的跳转  
                        } else if (data.status == -1) {
                                alert('非法操作');
                        } else if (data.status == -2) {

                                alert('昵称被占用');

                        } else if (data.status == false) {

                                alert('昵称修改失败，请重试！');

                        } else {

                                reload();
                        }


                }, 'json');



        });







</script>	











</body>
</html>